using System.Collections.Generic;
using JlPay.Sdk.Models;

namespace JlPay.Sdk.Models.Marketing
{
    /// <summary>
    /// 商户活动配置查询请求模型
    /// </summary>
    public class MerchantActivityConfigQueryRequest : OrgBaseRequest, IRequestMapper
    {
        /// <summary>
        /// 商户号
        /// </summary>
        public string? MerchNo { get; set; }

        /// <summary>
        /// 活动ID
        /// </summary>
        public string? ActId { get; set; }

        /// <summary>
        /// 获取接口路径
        /// </summary>
        /// <returns>接口路径</returns>
        public string Path()
        {
            return "/open/org/bank/act-bridge/act-merch-relation/query";
        }

        /// <summary>
        /// 转换为字典，过滤掉值为null的字段，使用snake_case命名策略
        /// </summary>
        /// <returns>字典对象</returns>
        public Dictionary<string, object> ToMap()
        {
            var result = new Dictionary<string, object>();
            
            if (!string.IsNullOrEmpty(MerchNo))
                result["merch_no"] = MerchNo;
            
            if (!string.IsNullOrEmpty(ActId))
                result["act_id"] = ActId;
            
            return result;
        }
    }
} 